<?php

namespace App\Http\Admin\Models;

use Illuminate\Database\Eloquent\Model;

class Role extends Model
{
    protected $primaryKey = 'id';
    protected $guarded = [];
    protected $table = 'admin_roles';

    public function permissions(){
        return $this->belongsToMany(Permission::class,'admin_role_permissions','role_id','permission_id');
    }
}
